<?php
$a =@new mysqli("localhost","root","123123","xbs_bbs","3306");
if($a->connect_errno){
    echo $a->connect_error;
}
$a->set_charset('utf8');

$b=$a->query('select * from stus');
if($a->errno){
    echo $a->error;
}
var_dump($b->fetch_assoc());